﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SubInfoList.aspx.cs" ValidateRequest="false" Inherits="Pages_Admin_SubInfoListTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <fieldset style="width:596px; padding:10px">
<legend>筛选条件</legend>

       订阅类型：<asp:DropDownList ID="ddltype" runat="server">
                        <asp:ListItem Value="0" Text="所有类型" Selected="True"></asp:ListItem>
                        <asp:ListItem Value="1" Text="城市开通"></asp:ListItem>
                        <asp:ListItem Value="2" Text="明天精品"></asp:ListItem>
                    </asp:DropDownList>
                   &nbsp;&nbsp;<label>城市：</label>
      <asp:DropDownList ID="ddlcity" runat="server" DataSourceID="odsCity" 
                        DataTextField="CityName" DataValueField="CityID" AppendDataBoundItems="true">
          <asp:ListItem Text="所有城市" Value="1" />
                    </asp:DropDownList>
                  <asp:Button ID="emailSearch" runat="server" Height="29px" Text="搜索" 
            Width="114px" onclick="emailSearch_Click"  />
                  &nbsp;&nbsp;&nbsp;
                  <asp:Button ID="emailSend" runat="server" Height="29px" Text="发送" 
            Width="114px" onclick="emailSend_Click" />
                  </fieldset>
        <br />
         <fieldset style="width:597px; padding:10px; text-align:left">
         <legend>订阅邮箱</legend>
             <asp:ListBox ID="emailShow" runat="server" DataSourceID="odseMailOrder" 
                 DataTextField="Email" DataValueField="Email" Height="298px" Width="546px">
             </asp:ListBox>
          </fieldset>
        <br />
         <fieldset style="width:597px; padding:10px; text-align:left">
         <legend>邮件主题</legend>
             <asp:TextBox ID="MainTitle" runat="server" Height="90px" TextMode="MultiLine" 
                 Width="551px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             </fieldset>
        <br />
         <fieldset style="width:597px; padding:10px; text-align:left">
         <legend>邮件页面</legend>
             <asp:TextBox ID="emailContent" runat="server" Height="646px" 
                 TextMode="MultiLine" Width="556px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             </fieldset>
        <br />
    <asp:ObjectDataSource ID="odsCity" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllList" 
        TypeName="Tuan.BLL.City"></asp:ObjectDataSource>
        <asp:ObjectDataSource ID="odseMailOrder" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetEmailListTest" 
            TypeName="Tuan.BLL.SubInfo">
            <SelectParameters>
                <asp:ControlParameter ControlID="ddltype" DefaultValue="0" Name="typeid" 
                    PropertyName="SelectedValue" Type="Int32" />
                <asp:ControlParameter ControlID="ddlcity" DefaultValue="1" Name="cityid" 
                    PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <br />
    
    </div>
    </form>
</body>
</html>